package springinpractice.ch3.model;

import springinpractice.ch3.model.Member;

/*
 * Author	:	Willie Wheeler and John Wheeler
 * Book		:	'Spring In Practice' [Book written by Willie Wheeler and John Wheeler]
 */

public class Member {
	private String firstName;
	private String lastName;
	private int id;
	
	public Member() {
	}
	
	public Member(String firstName, String lastName) {
		this.firstName = firstName;
		this.lastName = lastName;
	}
	public Member(String firstName, String lastName, int id) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.id = id;
	}
	
	public String getFirstName() {
		return firstName;
	}
	
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	public String getLastName() {
		return lastName;
	}
	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	public String toString() {
		return "[ id = "+id+" ; "+firstName + " " + lastName+ " ]";
	}
	
	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}
}
